Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to pynvml_utils.smi for PyNVML 12 #4863

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

jakirkham
Copy link
Member

In the PyNVML 12 upgrade, the pynvml package now depends on nvidia-ml-py. However nvidia-ml-py does not supply the smi submodule. To avoid clobbering the package, this module was moved from the pynvml namespace to pynvml_utils. As a result the import here needs the same tweak.

@jakirkham jakirkham added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jan 13, 2025
@jakirkham jakirkham requested a review from rjzamora January 13, 2025 21:50
@jakirkham jakirkham force-pushed the use_pynvml_utils_smi branch from de169b9 to 9d7db9d Compare January 13, 2025 21:53
@jakirkham jakirkham requested a review from a team as a code owner January 13, 2025 21:53
@jakirkham jakirkham requested a review from rlratzel January 13, 2025 21:54
@jakirkham jakirkham force-pushed the use_pynvml_utils_smi branch from 9d7db9d to e305416 Compare January 13, 2025 21:59
Copy link
Member

@rjzamora rjzamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jakirkham !

I left some comments - I don't think cugraph should be importing smi at all. As far as I can tell, it's not actually using smi queries anywhere.

python/utils/gpu_metric_poller.py Outdated Show resolved Hide resolved
This is also quoted or commented, which makes it unused. Given this go
ahead and drop it. If the code is needed again, it is simple to grab it
from history and readd it.
Copy link
Member

@alexbarghi-nv alexbarghi-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member Author

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding suggestion to remove unused smi code below

@jakirkham
Copy link
Member Author

Thanks for the feedback! 🙏

Cleaned up the bits discussed above. Please take another look when you have a moment

@jakirkham
Copy link
Member Author

Sounds like we are happy with these changes. Will go ahead and merge

If anything else comes up, happy to discuss

@jakirkham
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 1088403 into rapidsai:branch-25.02 Jan 16, 2025
74 checks passed
@jakirkham jakirkham deleted the use_pynvml_utils_smi branch January 16, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmarks improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants